How to add age to ageList =[12,13,23]

Posted by johnuseast on Stack Overflow See other posts from Stack Overflow or by johnuseast
Published on 2010-04-08T00:16:44Z Indexed on 2010/04/08 0:43 UTC
Read the original article Hit count: 290

Filed under:
|

may be too simple groovy question but....please help

i have a list like this:

def ageList =[12,13,23]

i want to get this:

def newAgeList =[age:12,age:13,age:23]

could some one help me out?

thank you so much!

© Stack Overflow or respective owner

Related posts about groovy

Related posts about list